package com.qi.spzx.manager.service.impl;

import com.qi.spzx.common.log.service.AsyncOperLogService;
import com.qi.spzx.manager.mapper.SysOperLogMapper;
import com.qi.spzx.model.entity.system.SysOperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Description TODO
 * @Author dingchunlin
 * @Date 2024/2/24 18:28
 * @Version 1.0.0
 */
@Service
public class AsyncOperLogServiceImpl implements AsyncOperLogService {

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    /**
     * 进行日志的添加操作
     * @param sysOperLog
     */
    @Async
    @Override
    public void saveSysOperLog(SysOperLog sysOperLog) {
        sysOperLogMapper.insert(sysOperLog);
    }
}
